C++判断对象类型 判断对象类型用typeid(),想要输出类型用typied(a).name(),其头文件为#include <typeinfo>; 如下图所示(建议可以了解typied 可看下 ...